package com.jianguo.user.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 用户端用户对象 pz_user
 *
 * @author xjj
 * @date 2024-04-11
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 电话 */
    @Excel(name = "电话")
    private String mobile;
    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String email;
    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;
    /** 账号 */
    @Excel(name = "账号")
    private String account;
    /** 密码 */
    @Excel(name = "密码")
    private String password;
    /** 优惠卷 */
    @Excel(name = "优惠卷")
    private Long juan;
    /** 积分 */
    @Excel(name = "积分")
    private Long fen;
    /** 头像 */
    @Excel(name = "头像")
    private String pic;
    /**  */
    @Excel(name = "")
    private Long status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("mobile", getMobile())
                .append("email", getEmail())
                .append("nickname", getNickname())
                .append("account", getAccount())
                .append("password", getPassword())
                .append("juan", getJuan())
                .append("fen", getFen())
                .append("pic", getPic())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("deleted", getDeleted())
                .append("remark", getRemark())
                .toString();
    }
}
